//
//  YCRegisterImprovePhotoButton.m
//  YCSchool
//
//  Created by Yanglixia on 16/5/8.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//

#import "YCRegisterImprovePhotoButton.h"

@implementation YCRegisterImprovePhotoButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    //设置imageView的位置
    self.imageView.yc_x = (self.yc_width - self.imageView.yc_width) * 0.5;
    self.imageView.yc_y = 0;
    
    [self.titleLabel sizeToFit];
    self.titleLabel.yc_x = (self.yc_width - self.titleLabel.yc_width) * 0.5;
    self.titleLabel.yc_y = (self.yc_height - self.imageView.yc_height - self.titleLabel.yc_height)* 0.5 + CGRectGetMaxY(self.imageView.frame);

}

@end
